package config

import (
	"github.com/shima-park/agollo"
)

type AppConfig struct {
	Name string
	Usage string
}

const (
	FlagAppName = "appName"
	FlagAppUsage = "appUsage"
)

func GetAppInfo() AppConfig {
	appName := agollo.Get(FlagAppName)
	appUsage := agollo.Get(FlagAppUsage)

	appConfig := AppConfig{
		Name:  appName,
		Usage: appUsage,
	}

	return appConfig
}